import service from "@/axios.js";

const login = (username, password) => {
  return service.post("/admin/login", { username, password });
};

const getinfo = () => {
  return service.post("/admin/getinfo");
};

const logout = () =>{
  return service.post("/admin/logout")
}

const updatePassword = (data) =>{

  return service.post("/admin/updatepassword", data)

}

export { login, getinfo, logout, updatePassword };
